package org.baixin.entity;

import java.util.Date;

/**
 * 
 * 
 * @author simon702@126.com
 * @version 1.0
 * @created 2011-6-12 下午04:05:35
 */

public class Message extends IdEntity {
	
	 /**
	  * 消息标题
	  */
    private String title;	
	  /**
	   *消息内容 
	   */
	private String context;
	
	 /**
	  * 发件人
	  * 
	  */
	private User fromUser;
	
	/**
	 * 收件人
	 *   
	 */
	private User recipient;
	
    /**
     * 创建时间
     * 
     */
	private Date createDate;
	
	/**
	 * 消息级别  
	 */
	 
    private String level;
    
    /**
     * 是否已读
     * 
     */
    private boolean flag;
	/**
	 * 返回 title 的值
	 * @return title
	 */
	
	public String getTitle() {
		return title;
	}

	/**
	 * 设置 title 的值
	 * @param title
	 */
	
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 返回 context 的值
	 * @return context
	 */
	
	public String getContext() {
		return context;
	}

	/**
	 * 设置 context 的值
	 * @param context
	 */
	
	public void setContext(String context) {
		this.context = context;
	}

	/**
	 * 返回 fromUser 的值
	 * @return fromUser
	 */
	
	public User getFromUser() {
		return fromUser;
	}

	/**
	 * 设置 fromUser 的值
	 * @param fromUser
	 */
	
	public void setFromUser(User fromUser) {
		this.fromUser = fromUser;
	}

	/**
	 * 返回 recipient 的值
	 * @return recipient
	 */
	
	public User getRecipient() {
		return recipient;
	}

	/**
	 * 设置 recipient 的值
	 * @param recipient
	 */
	
	public void setRecipient(User recipient) {
		this.recipient = recipient;
	}

	/**
	 * 返回 createDate 的值
	 * @return createDate
	 */
	
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * 设置 createDate 的值
	 * @param createDate
	 */
	
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
}
